package com.example.jin.myddms;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class myDDMS extends AppCompatActivity {
    private Button btn;
    private static final String TAG = "Log_tag";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        btn = (Button) findViewById(R.id.button);
        btn.setOnClickListener(new Button.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.v(myDDMS.TAG,"This is Verbose.");
                Log.d(myDDMS.TAG,"This is Debug.");
                Log.i(myDDMS.TAG,"This is Information.");
                Log.w(myDDMS.TAG,"This is Warnning.");
                Log.e(myDDMS.TAG,"This is Error.");
            }
        });
    }
}
